package com.adams.access.db.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 
 * 
 * File Name : AuditStep.java
 * 
 * @Description : 审核步骤配置 实体
 */
@Entity
@Table(name = "T_AUDIT_STEP")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class AuditStep extends EntityObject
{
	private static final long serialVersionUID = 1L;

	private Integer step;// 审核步数

	private User user;// 审核人编号（用户表id）

	private String typeCode;// 内容类型，业务：business, 栏目：channel, 元数据：metadata

	@Column(name = "STEP", nullable = false)
	public Integer getStep()
	{
		return step;
	}

	public void setStep(Integer step)
	{
		this.step = step;
	}

	@Column(name = "TYPE_CODE", nullable = false)
	public String getTypeCode()
	{
		return typeCode;
	}

	public void setTypeCode(String typeCode)
	{
		this.typeCode = typeCode;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "USER_ID")
	public User getUser()
	{
		return user;
	}

	public void setUser(User user)
	{
		this.user = user;
	}

}
